#include"comm.hpp"

int main()
{
    int shmid= Createshm();
    char* shmadd=static_cast<char*>(shmat(shmid,NULL,0));

    //想共享内存中输入字符串
    while(true)
    {
        // fgets(shmadd,size,stdin);
        // cin>>shmadd;
        cin.getline(shmadd,size);
        sleep(1);
    }

    return 0;
}